import Vue from 'vue'
import App from './App'
import store from './store'
import plugins from './plugins'
import './permission'
import globalConfig from '@/store/global.js'
import TuniaoUI from 'tuniao-ui'
import vuexStore from '@/store/$t.mixin.js';

// 引入TuniaoUI对小程序分享的mixin封装
let mpShare = require('tuniao-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)

Vue.use(TuniaoUI)
Vue.mixin(vuexStore)

Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store

App.mpType = 'app'

// 自动登录
globalConfig.autoLogin();

const app = new Vue({
	...App,
	store
})

app.$mount()